import pages from "@/pages";
import { Layout } from "@/components";

let routes = [
  {
    path: "/",
    component: Layout,
    children: [
      {
        path: "/home",
        text: "首页大屏",
        name: "home",
        component: pages.Home,
      },
      {
        path: "/up-data",
        text: "数据导入",
        name: "up-data",
        component: pages.UpData,
        breadcrumb: [
          {
            text: "数据导入",
          },
        ],
      },
      {
        path: "/403",
        text: "403",
        component: pages._403,
      },
      {
        path: "*",
        text: "404",
        component: pages._404,
      },
      {
        path: "/statistic",
        name: "statistic",
        component: pages.Statistic,
      },
      {
        path: "/national-data",
        text: "national-data",
        component: pages.NationalData,
      },
    ],
  },
  {
    path: "/login",
    text: "登录",
    name: "login",
    component: pages.Login,
  },
];

export default routes;
